PariahCybersecTest.DataRequestTest
Tests all of the DataRequestTest system (Keep in mind you need to make a dummy exe that is running within the local path; this will be fixed based on a few thoughts i've gotten)
public static async Task DataRequestTest()
{
var author = "Zakstar";
var software = "TournamentOfBullets";
var serviceParent = "GunGaleOnline";
var programName = "GunGaleOnlineLauncher";
var password = "TestPassword123!".ToSecureData();
var identifier = "Gun Gale Online".ToSecureData();
var username = "Launcher";
var tierCount = 1;
// Simulated PublicKey (normally this would be a PQC public key)
var publicKey = "SimulatedPublicKeyShouldBe32CharsLong".ToSecureData();
var manager = new Pariah_Cybersecurity.DataHandler.DataRequest();
// Test: GetPaths
var directoryData = await manager.GetPaths(identifier, software, author, programName, serviceParent);
Console.WriteLine("GetPaths test completed.");
var createdSystem = await manager.CreateNewSystem(username, identifier, password, software, author, "DummyExePath", serviceParent, tierCount, publicKey);
Console.WriteLine($"CreateNewSystem returned: {createdSystem.ConvertToString()}");
// Test: CreateNewApp
var createdApp = await manager.CreateNewApp("Tower Of Bullets", password, directoryData.MainServicePath, directoryData, "0", publicKey);
Console.WriteLine($"CreateNewApp returned: {createdApp.ConvertToString()}");
// Test: CheckMainPathValidity
var validityCheck = await manager.CheckMainPathValidity(directoryData, publicKey);
Console.WriteLine($"CheckMainPathValidity: {validityCheck}");
// Test: ValidateProgram
var validate = await manager.ValidateProgram(directoryData, programName, publicKey);
Console.WriteLine($"ValidateProgram: {validate}");
}